package com.lu.demo;

import com.lu.bean.impl.Jihe;
import com.lu.bean.impl.UserImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class JiheDemo {
    public static void main(String[] args) {
        ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
        /*Jihe jihe = app.getBean("jihe", Jihe.class);
        jihe.aaa();*/
        UserImpl user = app.getBean("user", UserImpl.class);
        String string = user.toString();
        System.out.println(string);

    }
}
